﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ConfigSources" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

  <xs:complexType name="DataSource">
    <xs:sequence>
      <xs:element name="Property" nillable="true" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attribute name="name" type="xs:string" />
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="id" type="xs:string" />
    <xs:attribute name="name" type="xs:string" />
  </xs:complexType>

  <xs:complexType name="Provider">
    <xs:sequence>
      <xs:element name="DataSource" minOccurs="0" maxOccurs="unbounded" type="DataSource" />
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" />
  </xs:complexType>

  <xs:complexType name="Reference">
    <xs:attribute name="provider" type="xs:string" />
    <xs:attribute name="connection_id" type="xs:string" />
  </xs:complexType>

  <xs:element name="ConfigSources" msdata:IsDataSet="true">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DefaultProvider" type="Reference" minOccurs="0" maxOccurs="1" />
        <xs:element name="LastUsedProvider" type="Reference" minOccurs="0" maxOccurs="1" />
        <xs:element name="DataSources" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Provider" minOccurs="0" maxOccurs="unbounded" type="Provider" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="version" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>